package com.shi.yibanjia.entity.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shi.yibanjia.enums.LogType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 系统日志(SysLog)表实体类
 *
 * @author makejava
 * @since 2024-06-02 18:47:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_log")
public class SysLog {
    //主键
    @TableId
    private Long id;
    //日志类型(1:查询,2:添加,3:修改,4:删除,5:其他)
    private LogType type;
    //日志描述
    private String description;
    //请求URI
    private String requestUri;
    //方法签名
    private String methodSignature;
    //请求参数
    private String args;
    //耗时(ms)
    private Integer duration;
    //创建时间
    private LocalDateTime createTime;
    //创建人
    private String createBy;

}

